home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Resource Library: Multimedia
/
Resource Library: Multimedia.iso
/
hypertxt
/
msdos
/
hydos10
/
sort
< prev
next >
Wrap
Text File
|
1991-04-23
|
722b
|
22 lines
SORT
Reads data from a device, sorts it and writes it.
COMMAND TYPE: External VERSION: 2.0 and up
USE: SORT [/R][/+n]
/R causes SORT to sort in reverse order. For example, Z comes before
A and 9 comes before 1.
/+n causes SORT to sort starting with column n.
This command is usually used in conjunction with a pipe ( | ) or with
file redirection ( [ or ] ).
EXAMPLE: DIR | SORT /+10
will read a directory, sort the directory using column 10 (the filename
extension) to sort by, and then display the directory.
EXAMPLE: SORT [ UNSORTED ] SORTED
will read the file UNSORTED, sort it and write the results to the file
SORTED.